package com.sca.gateway.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liuxianfei
 * @since 2020/10/30 11:01
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {

    /**
     * 请求成功
     */
    SUCCESS(0, "SUCCESS"),

    /**
     * 系统级错误[0-100]
     */
    ERR(1, "系统错误"),
    ERR_TOKEN_ERROR(2, "非法请求"),
    ERR_USERNAME_PASSWORD(3, "用户名或密码错误"),

    /**
     * 业务错误
     */
    ERR_XXX(101, "xxx错误"),

    xxx(999, "");

    /**
     * 响应码
     */
    private final int code;

    /**
     * 响应消息
     */
    private final String msg;


}
